Find cosine transform of f = x